package org.fluidripple.socket.inbound;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import lombok.extern.slf4j.Slf4j;
import org.fluidripple.socket.operation.ChannelOperation;

@Slf4j
public class AbstractInboundHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        log.info("系统异常=>",cause);
        ChannelOperation.closeChannel(ctx.channel(),null);
    }
}
